package com.olap.starter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.olap.starter.pojo.TableConfigColumn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author WBG
 * @since 2022-08-31
 */

public interface TableConfigColumnMapper extends BaseMapper<TableConfigColumn> {

    Integer getVersion(@Param("uuid") long uuid);

    @Select("SELECT * FROM TABLE_CONFIG_COLUMN WHERE PARENT_ID = #{parentId} order by SORT")
    List<TableConfigColumn> selectByParentId(@Param("parentId") long parentId);
}
